package service;

import dao.PetDao;
import entity.Pet;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/11/30  11:52
 */
public class PetServiceImpl implements PetService {
    PetDao petDao;

    public PetDao getPetDao() {
        return petDao;
    }

    public void setPetDao(PetDao petDao) {
        this.petDao = petDao;
    }

    @Override
    public int insert(Pet pet) {
        System.out.println(pet.getName()+"已插入数据库");
        return 1;
    }
}
